---
title: "Reference: Agent.getDescription() | Agents"
description: "Documentation for the `Agent.getDescription()` method in Mastra agents, which retrieves the agent's description."
---

# Agent.getDescription()

The `.getDescription()` method retrieves the description configured for an agent. This method returns a simple string description that describes the agent's purpose and capabilities.

## Usage example

```typescript copy
agent.getDescription();
```

## Parameters

This method takes no parameters.

## Returns

<PropertiesTable
  content={[
    {
      name: "description",
      type: "string",
      description:
        "The description of the agent, or an empty string if no description was configured.",
    },
  ]}
/>

## Related

- [Agents overview](/docs/v1/agents/overview)
